﻿// 指针指向二维数组
#include <iostream>
using namespace std;
// https://blog.csdn.net/complex01/article/details/80698558

// 传递数组指针
void printArr(int (*parr1)[3],int l)
{
    for (int i = 0; i < 3; ++i)
    {
        for (int j = 0; j < l; ++j)
        {
            printf("%d ",parr1[i][j]);
        }
        cout<<endl;
    }
}

int main()
{
	int arr[][3] = {0,1,2,3,4,5,6,6,9};
	int (*p)[3]=arr;
	int len=3;
	printArr(arr,len);

}

